package com.totoro.service;

import com.totoro.pojo.*;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author TOTORO
 * @date 2021/7/19 15:57
 */
public interface SellerService {

    User findUserBySlid(int slid);

    User findUserByUid(@Param("uid") int uid);

    Seller findSellerIdByUserId(int uid);

    Seller findSellerBySlid(int slid);

    Integer updateSellerScore(int score, int slid);

    List<Product> directFindSellerBuyBaby(int slid);

    List<Product> termFindSellerBuyBaby(BuyProductTerm buyProductTerm);

    Integer updateProductName(int productId, String productName, int itMethod);

    List<Product> termFindSellerDeleteBaby(BuyProductTerm buyProductTerm);

    CreditLevel findCreditLevelByCreditScore(int creditScore);

    Integer findNextLevelDifferCreditScore(CreditLevel creditLevel);

    Integer addApplySeller(int uid, String shopName);

    ApplySeller findUserApplySellerStatus(int uid);

    Integer deleteApplySeller(int uid);

    Integer updateShopPrimaryInfo(Shop shop);

    Integer updateShopHeadByShopId(int shopId, String shopHead);

    Integer updateShopPrimaryImage(int shopId, String shopImage);

    Integer updateShopCategoryBackgroundColor(int shopId, String color);

    Integer updateShopCategoryForegroundColor(int shopId, String color);

    Integer addShopSwitchImage(ShopSwitchImage shopSwitchImage);

    Integer deleteShopSwitchImage(ShopSwitchImage shopSwitchImage);

}
